// pages/car/xq/xq.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) { 
	wx.request({
		url:"http://www.51macc.com:8080/Mattrio/SelectCar/Years",
		header: {
			"Content-Type": "application/x-www-form-urlencoded;"
		},
		method:'POST',
		data:{
			Manufacture:options.name,
			VehicleName:options.id,
			car_type: 1
		},
		success:(e)=>{
			console.log(e)
			this.setData({
				list:e.data,
				Manufacture:options.name,
				VehicleName:options.id,
			})
		} 
	})
  }, 
  nav(e){
	  wx.navigateTo({
		  url:'../end/end?Manufacture='+this.data.Manufacture+'&VehicleName='+this.data.VehicleName+'&year='+e.currentTarget.dataset.id
	  })
  }
})